package ysq.xyg.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 网站部分-文章
 */
@Table(name = "web_article")
@Data
public class Article implements Serializable {

    @Id
    private String id;

    /**
     * 标题
     */
    private String title;

    /**
     * 显示图片
     */
    @Column(name = "show_pic")
    private String showPic;

    /**
     * 介绍
     */
    private String description;

    /**
     * 内容
     */
    private String content;

    /**
     * 状态：1、有效，2、无效
     */
    private String status;


    private int sort;

    @Column(name = "create_time")
    private Date createTime;

    @Transient
    private String catalogName;
}